<!--
  Created by IntelliJ IDEA.
  User: gaoxiang
  Date: 19-12-20
  Time: 上午11:21
-->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh">
    <th:block th:fragment="javascript">
        <!-- BEGIN CORE PLUGINS -->
        <script th:src="@{/metronic/global/plugins/jquery.min.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/global/plugins/bootstrap/js/bootstrap.min.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/global/plugins/js.cookie.min.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/global/plugins/jquery.blockui.min.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js}" type="text/javascript"></script>
        <!-- END CORE PLUGINS -->

        <!-- BEGIN THEME GLOBAL SCRIPTS -->
        <script th:src="@{/metronic/global/scripts/app.js}" type="text/javascript"></script>
        <!-- END THEME GLOBAL SCRIPTS -->

        <!-- BEGIN THEME LAYOUT SCRIPTS -->
        <script th:src="@{/metronic/layouts/layout/scripts/layout.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/layouts/layout/scripts/demo.js}" type="text/javascript"></script>
        <script th:src="@{/metronic/layouts/global/scripts/quick-sidebar.js}" type="text/javascript"></script>
        <!-- END THEME LAYOUT SCRIPTS -->

        <script th:src="@{/plugins/layer/layer.js}"></script>
        <script th:src="@{/js/tab.js}"></script>
        <script th:src="@{/js/tools.js}"></script>

        <script>
            (function(){
                //每次刷新页面获取
                sendHeart();
                //每间隔一分钟获取一次
                setInterval(function(){
                    sendHeart();
                },60000);
            })(document);

            //获取系统时间，保持访问心跳，防止session过时
            function sendHeart(){
                $.get("/path",null,function(data){
                    if(data.success){
                        $("#footerSysInfoShow").text(data.data[0]);
                        $("#footerInfoShow").text(data.data[1]);
                        $("#footerDateShow").text(data.data[2]);
                        $("#footerSessionShow").text(data.data[3]);
                    }
                })
            }
        </script>
    </th:block>
</html>